<?php

//Code from http://www.phpaddiction.com/tags/php/url-routing-with-php-part-three/
/**
 * Object with commandName and parameters with getters and setters. 
 */
class Axial_Command{
	var $m_commandName = "";
	var	$m_parameters = array();
	
	public function Axial_Command($a_commandName, $a_parameters){
		$this->m_commandName = $a_commandName;
		$this->m_parameters = $a_parameters;  
	}
	
	public function GetCommandName(){
		return $this->m_commandName;
	}
	
	public function GetParameters(){
		return $this->m_parameters;
	}
	
	public function GetFunction(){
		if(isset($this->m_parameters[0])){
			return $this->m_parameters[0];
		}else{
			return "";
		}
	}
}